<style type="text/css">
table .html {
    font-family: Arial;
    padding-right: 4px;
}
</style>
<table class="layui-table  text-center" lay-size="sm">
    <tbody>
        <tr>
            <th style="text-align: left;">承运商</th>
            <th style="text-align: left;">渠道名称</th>
            <th>渠道编号</th>
            <th>渠道类型</th>
            <th>是否可追踪</th>
            <th>默认起重(g)</th>
            <th>最大发货量</th>
            <th>追踪号方式</th>
            <th>面单方式</th>
            <th>面单尺寸(mm)</th>
            <th>文档链接</th>
            <th>状态</th>
            <th>排序</th>
            <th>备注</th>
            <th>操作</th>
        </tr>
        {volist name="list" id="item"}
            <tr>
                <td class="text-left">{$item.carrier.carrier_name}</td>
                <td class="text-left">{$item.channel_name}</td>
                <td>{$item.channel_num}</td>
                <td>{$item.channel_type}</td>
                <td>{$item.is_track}</td>
                <td>{$item.default_weight}</td>
                <td>{$item.day_max_shipping?:''}</td>
                <td>{$item.track_type}</td>
                <td>{$item.label_type}</td>
                <td>{$item.label_width} x {$item.label_height}</td>
                <td>{if !empty($item.document_path)}<a target="_blank" href="{$item.document_path}"><i class="layui-icon layui-icon-link"></i></a>{/if}</td>
                <td>
                    {php}$status = $item['status'];{/php}
                    <a href="{:url('update',['channel_id'=>$item['channel_id'], 'status'=>abs(1-$status)])}" class="ajax-get" msg="0" style="font-size: 16px;">
                        {$status?'<i class="fa fa-unlock"></i>':'<i class="fa fa-lock text-red"></i>'}</a>
                </td>
                <td>{$item.sort}</td>
                <td class="text-left">{$item.remark}</td>
                <td><a href="{:url('add',['channel_id'=>$item['channel_id']])}" class="layui-btn layui-btn-xs layui-btn-normal ajax-form" title="渠道管理">修改</a>
                    <a href="{:url('delete',['ids'=>$item['channel_id']])}" title="删除" confirm="1" class="layui-btn layui-btn-xs layui-btn-danger ajax-get">删除</a> </td>
            </tr>
        {/volist}
    </tbody>
</table>
